function removeDuplicate(arr) {
    let set = new Set(arr);
    //法一：
    return Array.from(set);
    //法二：return [...set];
}


let arr = [1, 1, 1, 2, 3, "1", "1"]

console.log(removeDuplicate(arr));